// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 
// Source File Name:   QSAdminPluginConfig.java

package org.quickserver.util.xmlreader;

import java.io.Serializable;

public class QSAdminPluginConfig
    implements Serializable
{

    public QSAdminPluginConfig()
    {
        name = "";
        desc = "";
        type = "";
        mainClass = "";
        active = "no";
    }

    public String getDesc()
    {
        return desc;
    }

    public void setDesc(String desc)
    {
        if(desc != null)
            this.desc = desc;
    }

    public void setActive(String active)
    {
        if(active != null)
            this.active = active;
    }

    public String getActive()
    {
        return active;
    }

    public String getMainClass()
    {
        return mainClass;
    }

    public void setMainClass(String mainClass)
    {
        if(mainClass != null)
            this.mainClass = mainClass;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        if(name != null)
            this.name = name;
    }

    public String getType()
    {
        return type;
    }

    public void setType(String type)
    {
        if(type != null)
            this.type = type;
    }

    public String toXML(String pad)
    {
        if(pad == null)
            pad = "";
        StringBuilder sb = new StringBuilder();
        sb.append(pad).append("<qsadmin-plugin>\n");
        sb.append(pad).append("\t<name>").append(getName()).append("</name>\n");
        sb.append(pad).append("\t<desc>").append(getDesc()).append("</desc>\n");
        sb.append(pad).append("\t<type>").append(getType()).append("</type>\n");
        sb.append(pad).append("\t<main-class>").append(getMainClass()).append("</main-class>\n");
        sb.append(pad).append("\t<active>").append(getActive()).append("</active>\n");
        sb.append(pad).append("</qsadmin-plugin>\n");
        return sb.toString();
    }

    private String name;
    private String desc;
    private String type;
    private String mainClass;
    private String active;
}
